package com.ruoyi.admin.domain.vo.response.flaw;

import com.ruoyi.admin.domain.entity.FlawModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.apache.poi.hpsf.Decimal;
import org.springframework.beans.BeanUtils;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.math.BigDecimal;


/**
 * 瑕疵表返回数据实体
 *
 * @author jianhan
 * @date 2023-01-31 09:53:25
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class FlawResponse {


    @ApiModelProperty(value = "主键", required = true)
    private Long id;

    @ApiModelProperty(value = "品牌名称", required = true)
    private String brand;

    @ApiModelProperty(value = "货号id", required = true)
    private Long articleId;

    @ApiModelProperty(value = "货号", required = true)
    private String atricleNumber;

    @ApiModelProperty(value = "码数", required = true)
    private String size;

    @ApiModelProperty(value = "图片地址", required = true)
    private String picture;

    @ApiModelProperty(value = "处理状态10未处理20已处理30已修复", required = true)
    private String state;

    @ApiModelProperty(value = "处理价格", required = true)
    private BigDecimal price;

    public FlawResponse(FlawModel flawModel) {
        BeanUtils.copyProperties(flawModel, this);
    }

}
